package Service.Impl.SignImpl;

import Dao.Sign.DeviceHgDao;
import Model.SignModel.DeviceHg;
import Service.DeviceHgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DeviceHgService")
public class DeviceHgServiceImpl implements DeviceHgService {

    @Autowired
    private DeviceHgDao deviceHgDao;

    @Override
    public List<DeviceHg> getDeviceHgList(DeviceHg deviceHg){
        System.out.println("[service层：查看护工设备信息~]");
        return deviceHgDao.getDeviceHgList(deviceHg);
    }

    @Override
    public void updateHgDeviceState(DeviceHg deviceHg){
        System.out.println("[service层：更新护工设备状态~]");
        deviceHgDao.updateHgDeviceState(deviceHg);
    }

    @Override
    public void deleteHgDevice(int id){
        System.out.println("[service层：删除护工设备~]");
        deviceHgDao.deleteHgDevice(id);
    }

    @Override
    public void updateHgDevice(DeviceHg deviceHg){
        System.out.println("[service层：编辑护工设备~]");
        deviceHgDao.updateHgDevice(deviceHg);
    }

    @Override
    public void addHgDevice(DeviceHg deviceHg){
        System.out.println("[service层：添加护工设备~]");
        deviceHgDao.addHgDevice(deviceHg);
    }

    @Override
    public List<DeviceHg> getHgDevice(DeviceHg deviceHg){
        System.out.println("[service层：查看护工设备一列~]");
        return deviceHgDao.getHgDevice(deviceHg);
    }


}
